home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / UPDATE- Int&Libs 3.2 / RIncludes / UnicodeUtilities.r < prev   
Encoding:
Text File  |  1999-05-25  |  5.6 KB  |  123 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        UnicodeUtilities.r
  3.  
  4.      Contains:    Types, constants, prototypes for Unicode Utilities (Unicode input and text utils)
  5.  
  6.      Version:    Technology:    Allegro
  7.                  Release:    Veronica Seed, Use with 3.2 Universal Interfaces
  8.  
  9.      Copyright:    © 1997-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __UNICODEUTILITIES_R__
  19. #define __UNICODEUTILITIES_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #define kUCKeyOutputStateIndexMask         0x4000
  26. #define kUCKeyOutputSequenceIndexMask     0x8000
  27. #define kUCKeyOutputTestForIndexMask     0xC000                /*  test bits 14-15 */
  28. #define kUCKeyOutputGetIndexMask         0x3FFF                /*  get bits 0-13 */
  29.  
  30. #define kUCKeyStateEntryTerminalFormat     0x0001
  31. #define kUCKeyStateEntryRangeFormat     0x0002
  32.  
  33. #define kUCKeyLayoutHeaderFormat         0x1002
  34. #define kUCKeyLayoutFeatureInfoFormat     0x2001
  35. #define kUCKeyModifiersToTableNumFormat  0x3001
  36. #define kUCKeyToCharTableIndexFormat     0x4001
  37. #define kUCKeyStateRecordsIndexFormat     0x5001
  38. #define kUCKeyStateTerminatorsFormat     0x6001
  39. #define kUCKeySequenceDataIndexFormat     0x7001
  40.  
  41. #define kUCKeyActionDown                 0                    /*  key is going down */
  42. #define kUCKeyActionUp                     1                    /*  key is going up */
  43. #define kUCKeyActionAutoKey             2                    /*  auto-key down */
  44. #define kUCKeyActionDisplay             3                    /*  get information for key display (as in Key Caps)             */
  45.  
  46. #define kUCKeyTranslateNoDeadKeysBit     0                    /*  Prevents setting any new dead-key states */
  47. #define kUCKeyTranslateNoDeadKeysMask     0x00000001
  48. #define kUCCollateComposeInsensitiveMask  0x00000002
  49. #define kUCCollateWidthInsensitiveMask     0x00000004
  50. #define kUCCollateCaseInsensitiveMask     0x00000008
  51. #define kUCCollateDiacritInsensitiveMask  0x00000010
  52.  
  53. #define kUCCollateStandardOptions         0x00000006
  54. #define kUCCollateTypeHFSExtended         1
  55. #define kUCCollateTypeSourceMask         0x000000FF
  56. #define kUCCollateTypeShiftBits         24
  57.  
  58. #define kUCCollateTypeMask                 0xFF000000
  59. #define kUCTextBreakCharType             'char'
  60. #define kUCTextBreakWordType             'word'
  61. #define kUCTextBreakLineType             'line'
  62.  
  63. #define kUCTextBreakLeadingEdgeMask     0x00000001
  64. #define kUCTextBreakGoBackwardsMask     0x00000002
  65.  
  66. #define kUCCharPropTypeGenlCategory     1                    /*  requests enumeration value */
  67. #define kUCCharPropTypeCombiningClass     2                    /*  requests numeric value 0..255 */
  68. #define kUCCharPropTypeBidiCategory     3                    /*  requests enumeration value */
  69.  
  70.                                                             /*  Normative categories: */
  71. #define kUCGenlCatOtherNotAssigned         0                    /*  Cn Other, Not Assigned */
  72. #define kUCGenlCatOtherControl             1                    /*  Cc Other, Control */
  73. #define kUCGenlCatOtherFormat             2                    /*  Cf Other, Format */
  74. #define kUCGenlCatOtherSurrogate         3                    /*  Cs Other, Surrogate */
  75. #define kUCGenlCatOtherPrivateUse         4                    /*  Co Other, Private Use */
  76. #define kUCGenlCatMarkNonSpacing         5                    /*  Mn Mark, Non-Spacing */
  77. #define kUCGenlCatMarkSpacingCombining     6                    /*  Mc Mark, Spacing Combining */
  78. #define kUCGenlCatMarkEnclosing         7                    /*  Me Mark, Enclosing */
  79. #define kUCGenlCatNumberDecimalDigit     8                    /*  Nd Number, Decimal Digit */
  80. #define kUCGenlCatNumberLetter             9                    /*  Nl Number, Letter */
  81. #define kUCGenlCatNumberOther             10                    /*  No Number, Other */
  82. #define kUCGenlCatSeparatorSpace         11                    /*  Zs Separator, Space */
  83. #define kUCGenlCatSeparatorLine         12                    /*  Zl Separator, Line */
  84. #define kUCGenlCatSeparatorParagraph     13                    /*  Zp Separator, Paragraph */
  85.                                                             /*  Informative categories: */
  86. #define kUCGenlCatLetterUppercase         14                    /*  Lu Letter, Uppercase */
  87. #define kUCGenlCatLetterLowercase         15                    /*  Ll Letter, Lowercase */
  88. #define kUCGenlCatLetterTitlecase         16                    /*  Lt Letter, Titlecase */
  89. #define kUCGenlCatLetterModifier         17                    /*  Lm Letter, Modifier */
  90. #define kUCGenlCatLetterOther             18                    /*  Lo Letter, Other */
  91. #define kUCGenlCatPunctConnector         20                    /*  Pc Punctuation, Connector */
  92. #define kUCGenlCatPunctDash             21                    /*  Pd Punctuation, Dash */
  93. #define kUCGenlCatPunctOpen             22                    /*  Ps Punctuation, Open */
  94. #define kUCGenlCatPunctClose             23                    /*  Pe Punctuation, Close */
  95. #define kUCGenlCatPunctInitialQuote     24                    /*  Pi Punctuation, Initial quote */
  96. #define kUCGenlCatPunctFinalQuote         25                    /*  Pf Punctuation, Final quote */
  97. #define kUCGenlCatPunctOther             26                    /*  Po Punctuation, Other */
  98. #define kUCGenlCatSymbolMath             28                    /*  Sm Symbol, Math */
  99. #define kUCGenlCatSymbolCurrency         29                    /*  Sc Symbol, Currency */
  100. #define kUCGenlCatSymbolModifier         30                    /*  Sk Symbol, Modifier */
  101. #define kUCGenlCatSymbolOther             31                    /*  So Symbol, Other */
  102.  
  103. #define kUCBidiCatNotApplicable         0                    /*  for now use this for unassigned */
  104.                                                             /*  Strong types: */
  105. #define kUCBidiCatLeftRight             1                    /*  L  Left-Right */
  106. #define kUCBidiCatRightLeft             2                    /*  R  Right-Left */
  107.                                                             /*  Weak types: */
  108. #define kUCBidiCatEuroNumber             3                    /*  EN European Number */
  109. #define kUCBidiCatEuroNumberSeparator     4                    /*  ES European Number Separator */
  110. #define kUCBidiCatEuroNumberTerminator     5                    /*  ET European Number Terminator */
  111. #define kUCBidiCatArabicNumber             6                    /*  AN Arabic Number */
  112. #define kUCBidiCatCommonNumberSeparator  7                    /*  CS Common Number Separator */
  113.                                                             /*  Separators: */
  114. #define kUCBidiCatBlockSeparator         8                    /*  B  Block Separator */
  115. #define kUCBidiCatSegmentSeparator         9                    /*  S  Segment Separator */
  116.                                                             /*  Neutrals: */
  117. #define kUCBidiCatWhitespace             10                    /*  WS Whitespace */
  118. #define kUCBidiCatOtherNeutral             11                    /*  ON Other Neutrals (unassigned codes could use this) */
  119.  
  120.  
  121. #endif /* __UNICODEUTILITIES_R__ */
  122.  
  123.